home *** CD-ROM | disk | FTP | other *** search
/ Clickx 36 / Clickx 36.iso / mac / assets / software / tuxpaint.dmg / Tux Paint.app / Contents / Frameworks / pixels.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-20  |  1.6 KB  |  50 lines

  1. /*
  2.   pixels.h
  3.  
  4.   For Tux Paint
  5.   Pixel read/write functions
  6.  
  7.   Copyright (c) 2002-2006 by Bill Kendrick and others
  8.   bill@newbreedsoftware.com
  9.   http://www.newbreedsoftware.com/tuxpaint/
  10.  
  11.   This program is free software; you can redistribute it and/or modify
  12.   it under the terms of the GNU General Public License as published by
  13.   the Free Software Foundation; either version 2 of the License, or
  14.   (at your option) any later version.
  15.  
  16.   This program is distributed in the hope that it will be useful,
  17.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.   GNU General Public License for more details.
  20.  
  21.   You should have received a copy of the GNU General Public License
  22.   along with this program; if not, write to the Free Software
  23.   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  24.   (See COPYING.txt)
  25.  
  26.   June 14, 2002 - February 17, 2006
  27.   $Id: pixels.h,v 1.2 2006/08/27 21:00:55 wkendrick Exp $
  28. */
  29.  
  30. #ifndef PIXELS_H
  31. #define PIXELS_H
  32.  
  33. #include "SDL.h"
  34.  
  35. void putpixel8(SDL_Surface * surface, int x, int y, Uint32 pixel);
  36. void putpixel16(SDL_Surface * surface, int x, int y, Uint32 pixel);
  37. void putpixel24(SDL_Surface * surface, int x, int y, Uint32 pixel);
  38. void putpixel32(SDL_Surface * surface, int x, int y, Uint32 pixel);
  39.  
  40. extern void (*putpixels[]) (SDL_Surface *, int, int, Uint32);
  41.  
  42. Uint32 getpixel8(SDL_Surface * surface, int x, int y);
  43. Uint32 getpixel16(SDL_Surface * surface, int x, int y);
  44. Uint32 getpixel24(SDL_Surface * surface, int x, int y);
  45. Uint32 getpixel32(SDL_Surface * surface, int x, int y);
  46.  
  47. extern Uint32(*getpixels[]) (SDL_Surface *, int, int);
  48.  
  49. #endif
  50.